﻿using SmartWMS.Domain.Base;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartWMS.Domain.SystemSet
{
    /// <summary>
    /// 权限表
    /// </summary>
    public class Permissions:KeyEntity
    {

        /// <summary>
        /// 父级权限
        /// </summary>
        public int PID { get; set; }

        /// <summary>
        /// 权限名称
        /// </summary>
        public string? Name { get; set; }

        /// <summary>
        /// 路径
        /// </summary>
        public string? Url { get; set; }

        /// <summary>
        /// 图标
        /// </summary>
        [StringLength(100)]
        public string? IconUrl { get; set; }

        /// <summary>
        /// 排序ID
        /// </summary>
        public int SortId { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsDelete { get; set; } = false;
        public int levelnum { get; set; }
    }
}
